package com.yang.service.admin;

import com.yang.bean.MarketRole;
import com.yang.bean.common.CommonData;
import com.yang.bean.dhr.MarketRoleOptionsVo;
import com.yang.bean.dhr.MarketRoleVo;
import com.yang.bean.yvo.qunxianvo.PerPostBO;
import com.yang.bean.yvo.qunxianvo.PermissionVO;


/**
 * @author dinghongrui
 * @create 2022/09/07 16:09
 */
public interface AdminRoleService {
    CommonData<MarketRole> selectAllRole(Integer page, Integer limit, String sort, String order, String name);

    CommonData<MarketRoleOptionsVo> selectAllRoleOptions();

    MarketRoleVo createRole(MarketRole marketRole);

    void updateRole(MarketRole marketRole);

    void deleteRole(MarketRole marketRole);

    PermissionVO selectPermissions(Integer roleId);

    void updatePermissions(PerPostBO perPostBO);
}
